package com.swas.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * patrol_check
 * @author 
 */
public class PatrolCheck implements Serializable {
    private Integer id;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ckdate;

    private String ckresult;

    private String ckadvice;

    private Integer taskid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCkdate() {
        return ckdate;
    }

    public void setCkdate(Date ckdate) {
        this.ckdate = ckdate;
    }

    public String getCkresult() {
        return ckresult;
    }

    public void setCkresult(String ckresult) {
        this.ckresult = ckresult;
    }

    public String getCkadvice() {
        return ckadvice;
    }

    public void setCkadvice(String ckadvice) {
        this.ckadvice = ckadvice;
    }

    public Integer getTaskid() {
        return taskid;
    }

    public void setTaskid(Integer taskid) {
        this.taskid = taskid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PatrolCheck other = (PatrolCheck) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCkdate() == null ? other.getCkdate() == null : this.getCkdate().equals(other.getCkdate()))
            && (this.getCkresult() == null ? other.getCkresult() == null : this.getCkresult().equals(other.getCkresult()))
            && (this.getCkadvice() == null ? other.getCkadvice() == null : this.getCkadvice().equals(other.getCkadvice()))
            && (this.getTaskid() == null ? other.getTaskid() == null : this.getTaskid().equals(other.getTaskid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCkdate() == null) ? 0 : getCkdate().hashCode());
        result = prime * result + ((getCkresult() == null) ? 0 : getCkresult().hashCode());
        result = prime * result + ((getCkadvice() == null) ? 0 : getCkadvice().hashCode());
        result = prime * result + ((getTaskid() == null) ? 0 : getTaskid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ckdate=").append(ckdate);
        sb.append(", ckresult=").append(ckresult);
        sb.append(", ckadvice=").append(ckadvice);
        sb.append(", taskid=").append(taskid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}